﻿using Microsoft.Expression.Interactivity.Layout;
using Microsoft.Practices.Prism.ViewModel;
using SqlSugar;
using System;
using System.Windows.Media;

namespace FPSO.HMI.Controls
{
	[SugarTable("sys_user")]

	public class UserInfo : NotificationObject
    {
		public UserInfo()
		{
			UserId = 0;
			UserName = string.Empty;
			Password = string.Empty;
			UserType = 0;
			UserCreateTime = DateTime.MinValue;
			UserUpdateTime = DateTime.MinValue;
		}

		[SugarColumn(ColumnName = "user_id", IsPrimaryKey = true, IsIdentity = true)]
		public int UserId { get; set; }

		[SugarColumn(ColumnName = "username")]
		public string UserName { get; set; }

		[SugarColumn(ColumnName = "password")]
		public string Password { get; set; }

		[SugarColumn(ColumnName = "type")]
		public int UserType { get; set; }

		[SugarColumn(ColumnName = "createtime")]
		public DateTime UserCreateTime { get; set; }

		[SugarColumn(ColumnName = "updatetime")]
		public DateTime UserUpdateTime { get; set; }
    }
}
